package models

import "time"

// MODEL 重写定义 *gorm.DB这个文件，删掉了删除时间
type MODEL struct {
	ID        uint      `gorm:"primarykey"  json:"id,select($any)" structs:"-"` //主键id
	CreatedAt time.Time `json:"created_at,select($any)" structs:"-"`            //创建时间
	UpdatedAt time.Time `json:"-" structs:"-"`                                  //更新时间
}

// PageInfo 分页查询、排序
type PageInfo struct {
	Page  int    `form:"page"`
	Key   string `form:"key"`
	Limit int    `form:"limit"`
	Sort  string `form:"sort"`
}

// DelIDList 根据id批量删除图片、广告
type DelIDList struct {
	DelIDList []uint `json:"del_id_list"`
}
type ESIDRequest struct {
	ID string `json:"id" form:"id" uri:"id"`
}
type ESIDListRequest struct {
	IDList []string `json:"id_list" binding:"required"`
}
